package com.baor.controller;


import com.baor.domain.MenuVo;
import com.baor.domain.StopVo;
import com.baor.service.StopService;
import com.baor.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/stop")
public class StopController {

    @Autowired
    private StopService stopService;

    @RequestMapping("/list")
    public AjaxResult<?> list(){
        return stopService.list();
    }


    @RequestMapping("/search")
    public AjaxResult<?> search(@RequestBody StopVo stopVo){
        return stopService.search(stopVo);
    }

}
